package com.dc.designPattern._23_specification.impl.step2;

import com.dc.designPattern._23_specification.impl.step2.spec.IUserSpecification;

import java.util.List;

/**
 * Description: 用户接口
 * @author: gdc
 * @date: 2021/8/20
 * @version 1.0
 */
public interface IUserProvider {

    /**
     * 根据条件查找用户
     * @param userSpecification
     * @return
     */
    List<User> listByQuery(IUserSpecification userSpecification);
}
